/*
 * @Author: your name
 * @Date: 2022-01-24 09:55:46
 * @LastEditTime: 2022-01-24 10:39:40
 * @LastEditors: LAPTOP-L472H14P
 * @Description: In User Settings Editcosntr 
 * @FilePath: \react_front_engineer\src\NodeJs\express\04中间件.js
 */
const express = require("express");
const app = express();
function middle1(req,res ,next) {
    console.log('进入中间件');
    next()
}
app.use(middle1);
app.get('/user',(request, response)=>{
    console.log('进入处理函数');
    response.send("访问成")
})
app.listen("3000",()=>{
    console.log("serveing is runing");
})